package com.tang.algorithm.string;

/**
 * @author tlm
 * @version 1.0
 * @date 2020/6/16 21:07
 */
public class LeetCode709 {
    public String toLowerCase(String str) {
        char[] arr = str.toCharArray();
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 'A' && arr[i] <= 'Z') {
                arr[i] += 'a' - 'A';
            }
        }
        return String.valueOf(arr);
    }
}
